package Accessors;

import Callbacks.AbstractCallback;
import Models.FGIInventory;
import Presenter.FGIInventoryPresenter;
import android.app.ProgressDialog;
import android.content.Context;

@SuppressWarnings("rawtypes")
public class FGIInventoryAccessor extends AbstractAccessor<FGIInventory,FGIInventoryPresenter,AbstractCallback> {
	private final String NAME = "fgiinventoryreport";
	private final String DIALOG = "FGI Inventory(s)";
	
	private final static FGIInventoryPresenter presenter = new FGIInventoryPresenter();
	
	//Modal dialog variable.
	ProgressDialog modalDialog = null;
	
	public FGIInventoryAccessor(AbstractCallback callback){
		super(presenter, callback);
	}
	
	public void getInventory(final Context context){
		String dialog = "Loading " + DIALOG + "...";
		String rfString = NAME + "/getFgiInventoryReport";
		super.getItem(context, dialog, rfString);
	}
}
